#include <iostream>
#include <conio.h>

//calculate 1 +1/2 +...+ 1/n	n=1,2... take to our
int main()
{
	int n = 0;
	double sum = 0.0 ;
	std::cout << " n = ";
	std::cin >> n ;
	for(int i = 1 ; i <= n ; ++i){
		sum = sum + 1 / (float) i ;
	}
	std::cout << " sum = " << sum << std::endl;
	getch();
	return 0;
}